// 1.导入http模块
const http = require('http');
const fs = require('fs');

//2.创建服务对象
const server = http.createServer((request,response)=>{
    let html = fs.readFileSync(__dirname+'/25-table.html');

    response.end(html);//设置响应体
})
// 3.监听端口，启动服务
server.listen(9000,()=>{
    console.log('服务已经启动。。。端口9000监听中。。。。');
})